.smart-video-container {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #f9f0f5 0%, #e6d7e3 100%);
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(149, 76, 121, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.header-content {
  flex: 1;
}

.page-title {
  color: #6a0dad;
  font-size: 28px;
  margin: 0 0 8px 0;
  font-weight: 700;
  background: linear-gradient(45deg, #6a0dad, #d946ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: #8a6d9c;
  font-size: 16px;
  margin: 0;
  font-weight: 400;
}

.header-actions {
  display: flex;
  gap: 15px;
}

.upload-btn, .analyze-btn, .export-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(149, 76, 121, 0.2);
}

.upload-btn {
  background: linear-gradient(45deg, #6a0dad, #8a2be2);
  color: white;
}

.upload-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(149, 76, 121, 0.3);
}

.analyze-btn {
  background: linear-gradient(45deg, #d946ef, #a855f7);
  color: white;
}

.export-btn {
  background: linear-gradient(45deg, #4f46e5, #7c3aed);
  color: white;
}

.analyze-btn:hover, .export-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(149, 76, 121, 0.3);
}

.video-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 视频播放区域样式 */
.video-player-section {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(149, 76, 121, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(217, 70, 239, 0.2);
}

.player-header h2 {
  color: #6a0dad;
  font-size: 22px;
  margin: 0;
  font-weight: 700;
}

.video-info-display {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}

.video-title-display {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.video-stats-display {
  font-size: 14px;
  color: #666;
}

.main-video-player {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(149, 76, 121, 0.1);
  background: #000;
}

.video-player-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-player-container video {
  width: 100%;
  max-height: 500px;
  border-radius: 16px;
  object-fit: contain;
}

.player-placeholder {
  height: 400px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  background: linear-gradient(45deg, #2c3e50 0%, #4a6491 100%);
  overflow: hidden;
}

.player-placeholder::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

.player-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-controls {
  position: absolute;
  bottom: 25px;
  display: flex;
  gap: 15px;
}

.control-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* 视频列表区域样式 */
.video-list-section {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(149, 76, 121, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  color: #6a0dad;
  font-size: 22px;
  margin: 0;
  font-weight: 700;
}

.section-actions {
  display: flex;
  gap: 15px;
}

.loading-message, .error-message, .success-message {
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

.loading-message {
  background: rgba(217, 70, 239, 0.1);
  color: #d946ef;
  border: 1px solid rgba(217, 70, 239, 0.3);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-message {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.filter-select {
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid #d946ef;
  background: white;
  color: #6a0dad;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(149, 76, 121, 0.1);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  min-height: 200px; /* 确保网格区域有最小高度 */
}

.video-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(149, 76, 121, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 250px; /* 确保卡片有最小高度 */
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(149, 76, 121, 0.2);
}

.video-card.selected {
  border: 2px solid #d946ef;
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.3);
}

.video-thumbnail {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumbnail.ai-analysis {
  background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
}

.video-thumbnail.ml-training {
  background: linear-gradient(45deg, #ff416c 0%, #ff4b2b 100%);
}

.video-thumbnail.neural-network {
  background: linear-gradient(45deg, #11998e 0%, #38ef7d 100%);
}

.video-thumbnail.nlp {
  background: linear-gradient(45deg, #f7971e 0%, #ffd200 100%);
}

.video-thumbnail.computer-vision {
  background: linear-gradient(45deg, #8E2DE2 0%, #4A00E0 100%);
}

.video-thumbnail.recommendation {
  background: linear-gradient(45deg, #2193b0 0%, #6dd5ed 100%);
}

.play-icon {
  font-size: 56px;
  color: white;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.video-card:hover .play-icon {
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.ai-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(45deg, #d946ef, #a855f7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(149, 76, 121, 0.3);
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.video-views {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(217, 70, 239, 0.15);
  color: #d946ef;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* 模态框样式 */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.video-modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(45deg, #6a0dad, #d946ef);
  color: white;
}

.video-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.video-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-modal-info {
  padding: 25px;
}

.video-modal-info form input,
.video-modal-info form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.video-modal-info form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.video-action-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(45deg, #6a0dad, #d946ef);
  color: white;
  box-shadow: 0 4px 10px rgba(149, 76, 121, 0.2);
}

.video-action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(149, 76, 121, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .smart-video-container {
    padding: 15px;
  }
  
  .video-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .player-placeholder {
    height: 250px;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .player-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .video-info-display {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .smart-video-container {
    padding: 10px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .video-header {
    padding: 15px;
  }
  
  .upload-btn, .analyze-btn, .export-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .player-placeholder {
    height: 200px;
  }
  
  .player-controls {
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    bottom: auto;
    margin-top: 20px;
  }
}

/* 上传状态区域样式 */
.upload-status-section {
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(45deg, #6a0dad, #d946ef);
  border-radius: 5px;
  transition: width 0.3s ease;
}